import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

// 引入elementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入elementPlusIcon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import App from './App.vue'
import router from './router'
const app = createApp(App)
// 全局注册elememtnPlusIcon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

// 注册elementPlus
app.use(ElementPlus)
zhCn.el.pagination.total = "总共：" + `{total}` + "条"
zhCn.el.pagination.goto = "跳转至"
app.use(createPinia())
app.use(router)

app.mount('#app')
